<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>javaweb-搭建环境上传图片到后台并存储 | Jin Tian</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  
  <meta name="keywords" content="JavaWeb开发" />
  
  
  
  
  <meta name="description" content="介绍使用intelliJ idea搭建JavaWeb开发环境，以及实现简单的Servlet，从此你就可以建立自己的服务器，结合安卓或者IPhone实现任何你想通过云来完成的工作啦！">
<meta name="keywords" content="JavaWeb开发">
<meta property="og:type" content="article">
<meta property="og:title" content="JavaWeb-搭建环境上传图片到后台并存储">
<meta property="og:url" content="http://yoursite.com/2016/11/29/JavaWeb-搭建环境上传图片到后台并存储/index.html">
<meta property="og:site_name" content="Jin Tian">
<meta property="og:description" content="介绍使用intelliJ idea搭建JavaWeb开发环境，以及实现简单的Servlet，从此你就可以建立自己的服务器，结合安卓或者IPhone实现任何你想通过云来完成的工作啦！">
<meta property="og:locale" content="zh-CN">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/EbuWOwE5PQn4GU8J.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/8ojlFZmZ4eXniqVZ.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/nnk0ezwtEVHwFUfm.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/Zf9Hed0OTO76m4W6.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/ZWCpALnd6rMKKAaC.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/ljYYqqHU9q4aMox7.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/ua4KBGsEaws2e93e.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/4L4H61xBRE5ypLki.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/Q8JZwUHn4OjMNj36.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/R6LhoUtL5FWPONJA.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/G5KWmVXwiDqMoc3V.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/JYwlkbv6sU1BsICC.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/6EZVVTxxVV9Ds5d4.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/mhkghnN7KdRixdX5.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/VP5Li9d6SWgG01n0.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/A9dYfAvyqe7y3JTm.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/Flxq574wqsYzOrAh.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/jbnAqYzR4Hq8O2YU.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/JGbp4rOS98l8UThb.png">
<meta property="og:image" content="http://ofwzcunzi.bkt.clouddn.com/UeyoJFQfikwjddss.png">
<meta property="og:updated_time" content="2016-12-11T15:23:42.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="JavaWeb-搭建环境上传图片到后台并存储">
<meta name="twitter:description" content="介绍使用intelliJ idea搭建JavaWeb开发环境，以及实现简单的Servlet，从此你就可以建立自己的服务器，结合安卓或者IPhone实现任何你想通过云来完成的工作啦！">
<meta name="twitter:image" content="http://ofwzcunzi.bkt.clouddn.com/EbuWOwE5PQn4GU8J.png">
  
    <link rel="alternate" href="/atom.xml" title="Jin Tian" type="application/atom+xml">
  

  

  <link rel="icon" href="/css/images/mylogo.jpg">
  <link rel="apple-touch-icon" href="/css/images/mylogo.jpg">
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link href="https://fonts.googleapis.com/css?family=Open+Sans|Montserrat:700" rel="stylesheet" type="text/css">
  <link href="https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic" rel="stylesheet" type="text/css">
  <link href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
  <style type="text/css">
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/9749f0/00000000000000000001008f/27/l?subset_id=2&fvd=n5) format("woff2");font-weight:500;font-style:normal;}
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/90cf9f/000000000000000000010091/27/l?subset_id=2&fvd=n7) format("woff2");font-weight:500;font-style:normal;}
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/8a5494/000000000000000000013365/27/l?subset_id=2&fvd=n4) format("woff2");font-weight:lighter;font-style:normal;}
    @font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/d337d8/000000000000000000010095/27/l?subset_id=2&fvd=i4) format("woff2");font-weight:400;font-style:italic;}</style>
  <link rel="stylesheet" href="/css/style.css">

  <script src="/js/jquery-3.1.1.min.js"></script>
  <script src="/js/bootstrap.js"></script>

  <!-- Bootstrap core CSS -->
  <link rel="stylesheet" href="/css/bootstrap.css" >

  
    <link rel="stylesheet" href="/css/dialog.css">
  

  

  
    <link rel="stylesheet" href="/css/header-post.css" >
  

  
  
  
    <link rel="stylesheet" href="/css/vdonate.css" >
  

</head>



  <body data-spy="scroll" data-target="#toc" data-offset="50">


  
  <div id="container">
    <div id="wrap">
      
        <header>

    <div id="allheader" class="navbar navbar-default navbar-static-top" role="navigation">
        <div class="navbar-inner">
          
          <div class="container"> 
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>

            
              <a class="brand" style="
                 border-width: 0px;  margin-top: 0px;"  
                href="#" data-toggle="modal" data-target="#myModal" >
                  <img width="124px" height="124px" alt="Hike News" src="/css/images/mylogo.jpg">
              </a>
            
            
            <div class="navbar-collapse collapse">
              <ul class="hnav navbar-nav">
                
                  <li> <a class="main-nav-link" href="/">首页</a> </li>
                
                  <li> <a class="main-nav-link" href="/archives">归档</a> </li>
                
                  <li> <a class="main-nav-link" href="/categories">分类</a> </li>
                
                  <li> <a class="main-nav-link" href="/tags">标签</a> </li>
                
                  <li> <a class="main-nav-link" href="/about">关于</a> </li>
                
                  <li> <a class="main-nav-link" href="http://luoli-luoli.com/chat">chat</a> </li>
                
                  <li><div id="search-form-wrap">

    <form class="search-form">
        <input type="text" class="ins-search-input search-form-input" placeholder="" />
        <button type="submit" class="search-form-submit"></button>
    </form>
    <div class="ins-search">
    <div class="ins-search-mask"></div>
    <div class="ins-search-container">
        <div class="ins-input-wrapper">
            <input type="text" class="ins-search-input" placeholder="请输入关键词..." />
            <span class="ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
        </div>
        <div class="ins-section-wrapper">
            <div class="ins-section-container"></div>
        </div>
    </div>
</div>
<script>
(function (window) {
    var INSIGHT_CONFIG = {
        TRANSLATION: {
            POSTS: '文章',
            PAGES: '页面',
            CATEGORIES: '分类',
            TAGS: '标签',
            UNTITLED: '(无标题)',
        },
        ROOT_URL: '/',
        CONTENT_URL: '/content.json',
    };
    window.INSIGHT_CONFIG = INSIGHT_CONFIG;
})(window);
</script>
<script src="/js/insight.js"></script>

</div></li>
            </div>
          </div>
                
      </div>
    </div>

</header>



      
            
      <div id="content" class="outer">
        
          <section id="main" style="float:none;"><article id="post-JavaWeb-搭建环境上传图片到后台并存储" style="width: 75%; float:left;" class="article article-type-post" itemscope itemprop="blogPost" >
  <div id="articleInner" class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="thumb" class="article-title" itemprop="name">
      JavaWeb-搭建环境上传图片到后台并存储
    </h1>
  

      </header>
    
    <div class="article-meta">
      
	<a href="/2016/11/29/JavaWeb-搭建环境上传图片到后台并存储/" class="article-date">
	  <time datetime="2016-11-29T07:33:26.000Z" itemprop="datePublished">2016-11-29</time>
	</a>

      
      
	<a class="article-views">
	<span id="busuanzi_container_page_pv">
		阅读量<span id="busuanzi_value_page_pv"></span>
	</span>
	</a>

    </div>
    <div class="article-entry" itemprop="articleBody">
      
        <p>介绍使用intelliJ idea搭建JavaWeb开发环境，以及实现简单的Servlet，从此你就可以建立自己的服务器，结合安卓或者IPhone实现任何你想通过云来完成的工作啦！<br><a id="more"></a></p>
<blockquote>
<p>本文由中南大学较为牛逼的研究生金天同学原创，欢迎转载，但是请保留这段版权信息，如果你对文章有任何疑问，欢迎微信联系我：jintianiloveu。牛逼大神一一为你解答！</p>
</blockquote>
<h3 id="intellij-idea-Java-web环境的搭建"><a href="#intellij-idea-Java-web环境的搭建" class="headerlink" title="intellij idea Java web环境的搭建"></a>intellij idea Java web环境的搭建</h3><p>很久以来，很多人用eclipse，什么都是eclipse，java是，安卓是，甚至连C++都有人用eclipse，然而作为一个对技术和审美有着强烈追求的男人，是不能忍受eclipse古老的界面的，这时候我们就应该使用intellij idea，地球表面以上3000米高空一下最牛逼的ide，是的你没有听错，就是它。闲话不多说，让我们看看人家idea的启动界面：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/EbuWOwE5PQn4GU8J.png" alt="intellij idea启动界面"></p>
<p>简直狂月酷炫有没有。好吧其实我知道你们很多人知道，我就不装逼了，直接说重点吧。</p>
<p>说先对于一个web项目来说，你的idea一定要是Ultramate版本，也就是旗舰版，不知道这个单词写错没有，大家将就看，实际上intellij全系的专业版ide都可以破解，在这里放一个破解链接，大家需要的就是获取个注册码：<a href="http://idea.lanyus.com" target="_blank" rel="noopener">获取注册码通道</a></p>
<p>好了同志们要开车了，有了idea我们就要开始搭建开发环境了，请注意本次火箭即将开车。</p>
<ul>
<li><p>新建一个web工程</p>
<p>新建工程很简单，按照向导来，在选择页面我们选择webapp</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/8ojlFZmZ4eXniqVZ.png" alt="PicName"></p>
<p>然后给工程取一个名字，接下来我们可以看到idea已经帮我新建好了一个完成的web工程。这里我们还要新建两个文件夹，结构如图所示，先不要问为什么，等一下我会告诉大家。</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/nnk0ezwtEVHwFUfm.png" alt="PicName"></p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/Zf9Hed0OTO76m4W6.png" alt="PicName"></p>
<p>新建了一个classes一个lib文件夹，先建好，等一下我们再配置，建好了之后呢，我们在src文件夹下新建一个包：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/ZWCpALnd6rMKKAaC.png" alt="PicName"></p>
<p>包名自己取，最后我们在包下面新建一个Servlet，弹出菜单选中Servlet：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/ljYYqqHU9q4aMox7.png" alt="PicName"></p>
<p>是的，你没有看错我们这就新建好了servlet，但是你还得再web.xml中添加一下Servlet的映射：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/ua4KBGsEaws2e93e.png" alt="PicName"></p>
<p>来看看生成的sevlet：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/4L4H61xBRE5ypLki.png" alt="PicName"></p>
</li>
<li><p>配置java文件的输出路径和lib路径</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/Q8JZwUHn4OjMNj36.png" alt="PicName"></p>
<p>如图我们配置一下输出的路径，选择我们之前新建的classes和lib文件夹，classes和lib文件夹分别是我们java文件输出和jar依赖的文件夹。</p>
<p>然后切换到depencies选项卡，点击添加，添加一个jar的依赖路径：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/R6LhoUtL5FWPONJA.png" alt="PicName"></p>
<p>选择jar directory:</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/G5KWmVXwiDqMoc3V.png" alt="PicName"></p>
<p>勾选然后确定：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/JYwlkbv6sU1BsICC.png" alt="PicName"></p>
</li>
<li><p>最后一步，我们就要配置tomcat服务器了</p>
<p>tomcat是什么猫我就不多说了，一个web容器，你的java web app就放在这个容器里面，web app运行依赖于我们的tomcat，那么配置的时候我们就需要点击右上角的这个地方：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/6EZVVTxxVV9Ds5d4.png" alt="PicName"></p>
<p>来配置，在这里选择local tomcat：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/mhkghnN7KdRixdX5.png" alt="PicName"></p>
<p>只需要给tomcat服务器娶一个名字，然后点击deployment下面的添加，添加artifact依赖：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/VP5Li9d6SWgG01n0.png" alt="PicName"></p>
<p>最后在旁边填写一个目录，写上工程的名字即可。哦忘了一步，在Server选项卡里面你要配置一下你的tomcat服务器，怎么配置很简单，只要configure选择你的tomcat文件夹就可以了，最外层的那个，idea自动识别。然后确定就OK。</p>
</li>
</ul>
<h3 id="开发小程序"><a href="#开发小程序" class="headerlink" title="开发小程序"></a>开发小程序</h3><p>好搭建好了我们来个开车小程序。对了，在这个时候你可能会遇到一个问题，就是servlet识别不了server包：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/A9dYfAvyqe7y3JTm.png" alt="PicName"></p>
<p>这是因为我们还没有吧tomcat官方jar包放到lib文件夹下，就是我们刚才新建的那个依赖文件夹，在tomcat文件夹下的lib文件夹寻找：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/Flxq574wqsYzOrAh.png" alt="PicName"></p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/jbnAqYzR4Hq8O2YU.png" alt="PicName"></p>
<p>这个jar包，ok现在没有报错，我们在doPost方法里面写一段代码：</p>
<figure class="highlight java"><table><tr><td class="code"><pre><div class="line">response.setContentType(<span class="string">"text/html"</span>);</div><div class="line">response.setCharacterEncoding(<span class="string">"utf-8"</span>);</div><div class="line">PrintWriter out = response.getWriter();</div><div class="line">out.print(<span class="string">"我要毫不经意的打一个广告，是的，就是在这里，大家快使用PicBind图床神器写博客！！"</span>);</div></pre></td></tr></table></figure>
<p>好的我们运行一下这个web app，如果控制台显示这样说名运行了</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/JGbp4rOS98l8UThb.png" alt="PicName"></p>
<p>好，接下来激动人心的时刻到了，我们在浏览器中输入：（或者直接在弹出的浏览器中后面加上我们servlet的名字 /HelloServlet），见证奇迹的时刻到了！！！</p>
<p>！！！！！</p>
<p>………….好像并没有什么卵反应？我故意的，把上面那段代码拷贝到doGet方法中，在更新一下资源并重启服务器看一下：</p>
<p><img src="http://ofwzcunzi.bkt.clouddn.com/UeyoJFQfikwjddss.png" alt="PicName"></p>
<p>骚年，你没有看错！！！你成功学会了使用servlet！！！</p>
<blockquote>
<p>感谢大家阅读我的博客，本文永久更新地址: jinfagang.coding.me</p>
<p>也欢迎大家积极留言，让我看到你的存在</p>
</blockquote>

      
    </div>
    <footer class="article-footer">
      
        <div id="donation_div"></div>

<script src="/js/vdonate.js"></script>
<script>
var a = new Donate({
  title: '骚年，加个好友打赏一下啊，现在连泡面都吃不起了啊', // 可选参数，打赏标题
  btnText: '打赏支持', // 可选参数，打赏按钮文字
  el: document.getElementById('donation_div'),
  wechatImage: 'https://i.loli.net/2017/09/27/59cb048ba6838.jpeg',
  alipayImage: 'https://i.loli.net/2017/09/27/59cb049cd0951.jpeg'
});
</script>
      
      
        
	<div id="comment">
		<!-- 来必力City版安装代码 -->
		<div id="lv-container" data-id="city" data-uid="MTAyMC8zMDA5MC82NjQ1">
		<script type="text/javascript">
		   (function(d, s) {
		       var j, e = d.getElementsByTagName(s)[0];

		       if (typeof LivereTower === 'function') { return; }

		       j = d.createElement(s);
		       j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
		       j.async = true;

		       e.parentNode.insertBefore(j, e);
		   })(document, 'script');
		</script>
		<noscript>为正常使用来必力评论功能请激活JavaScript</noscript>
		</div>
		<!-- City版安装代码已完成 -->
	</div>



      
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/JavaWeb开发/">JavaWeb开发</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2016/11/29/Hexo如何在两台电脑上更新博客/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">上一篇</strong>
      <div class="article-nav-title">
        
          Hexo如何在两台电脑上更新博客
        
      </div>
    </a>
  
  
    <a href="/2016/11/05/PicBind-新一代图床神器/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">下一篇</strong>
      <div class="article-nav-title">PicBind--新一代图床神器</div>
    </a>
  
</nav>

  
</article>

<!-- Table of Contents -->

  <aside id="toc-sidebar">
    <div id="toc" class="toc-article">
    <strong class="toc-title">文章目录</strong>
    
        <ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#intellij-idea-Java-web环境的搭建"><span class="nav-number">1.</span> <span class="nav-text">intellij idea Java web环境的搭建</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#开发小程序"><span class="nav-number">2.</span> <span class="nav-text">开发小程序</span></a></li></ol>
    
    </div>
  </aside>
</section>
        
      </div>
      
      <footer id="footer">
  

  <div class="container">
      	<div class="row">
	      <p> Powered by <a href="http://www.luoli-luoli.com/" target="_blank">萝莉萝莉</a> and <a href="http://www.luoli-luoli.com/sia" target="_blank">Sia</a> </p>
	      <p id="copyRightEn">Copyright &copy; 2017 - 2018 Jin Tian All Rights Reserved.</p>
	      
	      
    		<p class="busuanzi_uv">
				访客数 : <span id="busuanzi_value_site_uv"></span> |  
				访问量 : <span id="busuanzi_value_site_pv"></span>
		    </p>
  		   
		</div>

		
  </div>
</footer>


<!-- min height -->

<script>
    var wrapdiv = document.getElementById("wrap");
    var contentdiv = document.getElementById("content");
    var allheader = document.getElementById("allheader");

    wrapdiv.style.minHeight = document.body.offsetHeight + "px";
    if (allheader != null) {
      contentdiv.style.minHeight = document.body.offsetHeight - allheader.offsetHeight - document.getElementById("footer").offsetHeight + "px";
    } else {
      contentdiv.style.minHeight = document.body.offsetHeight - document.getElementById("footer").offsetHeight + "px";
    }
</script>
    </div>
    <!-- <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
    <a href="/categories" class="mobile-nav-link">Categories</a>
  
    <a href="/tags" class="mobile-nav-link">Tags</a>
  
    <a href="/about" class="mobile-nav-link">About</a>
  
    <a href="http://luoli-luoli.com/chat" class="mobile-nav-link">Chat</a>
  
</nav> -->
    

<!-- mathjax config similar to math.stackexchange -->

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      processEscapes: true
    }
  });
</script>

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
      tex2jax: {
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      }
    });
</script>

<script type="text/x-mathjax-config">
    MathJax.Hub.Queue(function() {
        var all = MathJax.Hub.getAllJax(), i;
        for(i=0; i < all.length; i += 1) {
            all[i].SourceElement().parentNode.className += ' has-jax';
        }
    });
</script>

<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/scripts.js"></script>




  <script src="/js/dialog.js"></script>








	<div style="display: none;">
    <script src="https://s95.cnzz.com/z_stat.php?id=1260716016&web_id=1260716016" language="JavaScript"></script>
  </div>



	<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
	</script>






  </div>

  <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h2 class="modal-title" id="myModalLabel">设置</h2>
      </div>
      <hr style="margin-top:0px; margin-bottom:0px; width:80%; border-top: 3px solid #000;">
      <hr style="margin-top:2px; margin-bottom:0px; width:80%; border-top: 1px solid #000;">


      <div class="modal-body">
          <div style="margin:6px;">
            <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" onclick="javascript:setFontSize();" aria-expanded="true" aria-controls="collapseOne">
              正文字号大小
            </a>
          </div>
          <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
          <div class="panel-body">
            您已调整页面字体大小
          </div>
        </div>
      


          <div style="margin:6px;">
            <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" onclick="javascript:setBackground();" aria-expanded="true" aria-controls="collapseTwo">
              夜间护眼模式
            </a>
        </div>
          <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
          <div class="panel-body">
            夜间模式已经开启，再次单击按钮即可关闭 
          </div>
        </div>

        <div>
            <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="true" aria-controls="collapseThree">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关 于&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
        </div>
         <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
          <div class="panel-body">
            Jin Tian
          </div>
          <div class="panel-body">
            Copyright © 2018 Jintian All Rights Reserved.
          </div>
        </div>
      </div>


      <hr style="margin-top:0px; margin-bottom:0px; width:80%; border-top: 1px solid #000;">
      <hr style="margin-top:2px; margin-bottom:0px; width:80%; border-top: 3px solid #000;">
      <div class="modal-footer">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
      </div>
    </div>
  </div>
</div>
  
  <a id="rocket" href="#top" class=""></a>
  <script type="text/javascript" src="/js/totop.js?v=1.0.0" async=""></script>
  
    <a id="menu-switch"><i class="fa fa-bars fa-lg"></i></a>
  
</body>
</html>